package com.vcredit.creditcat.manager;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;

import com.alibaba.dubbo.config.annotation.Service;
import com.vcredit.creditcat.api.IApplyStrategyManager;
import com.vcredit.creditcat.model.ApplyStrategy;
import com.vcredit.creditcat.service.ApplyStrategyService;

@Service(protocol = { "protocol1" }, version = "1.0")
public class ApplyStrategyManager implements IApplyStrategyManager {
	@Autowired
	private ApplyStrategyService applyStrategyService;

	@Override
	public List<ApplyStrategy> answer(Long productId) {
		// TODO Auto-generated method stub
		ApplyStrategy applyStrategy = new ApplyStrategy();
		applyStrategy.setProductId(productId);
		applyStrategy.setIsFlag(0);
		List<ApplyStrategy> listApply = applyStrategyService.find(applyStrategy);
		return listApply;
	}

}
